package com.luobd.base;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role {



    private Long id;


    private String name;



    private String key;


    public static Role of(Long id,String name,String key) {
        Role role = new Role();
        role.setId(id);
        role.setName(name);
        role.setKey(key);
        return role;
    }




}
